﻿@model System.Linq.IQueryable<Domain.Entity.NewsArticle>

 <table style="text-align: center" class="defaultGrey">
        <tr class="tHeader @Html.GetColor(Request.Cookies["color"])">
            <th>Name</th>
            <th>Release Year</th>
            <th>Generation</th>
            @*<th>Developer</th>*@
            <th></th>
        </tr>
    @foreach (var p in Model.Items)
        {
            <tr>
                <td>@Html.ActionLink(p.Name, "EditPlatform", new {p.PlatformID})</td>
                <td>@p.YearReleased</td>
                <td>@p.Generation</td>
                @*<td>@p.Developer</td>*@
                <td>
                    @using (Html.BeginForm("DeletePlatform", "Platform"))
                    {
                        @Html.Hidden("PlatformID", p.PlatformID)
                        <input type="submit" value="Delete" class="actionButtons" />
                    }
                </td>
            </tr>
        }
    </table>